package com.macro.mall.controller;


import com.macro.mall.common.api.CommonResult;
import com.macro.mall.query.DrpDnBoxQuery;
import com.macro.mall.service.DrpDnBoxService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class DrpDnBoxController {


    @Autowired
    private DrpDnBoxService drpDnBoxService;

    /***
     * 获取下拉框
     * @param query
     *          keys_type keys类型
     *          catg_type 采集分类
     * @return
     */
    @GetMapping("getDrpDnBox")
    public CommonResult getDrpDnBox(DrpDnBoxQuery query) {
        return drpDnBoxService.getDrpDnBox(query);
    }


}
